package com.web.graduationpro.model;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "teacher")
@SuppressWarnings("all")
public class Teacher {
	private Integer id;
	private String name;
	private String describe;
	private String headimg;
	private InstrumentSchool instrumentSchool;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public String getHeadimg() {
		return headimg;
	}
	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}
	@ManyToOne(cascade={CascadeType.PERSIST})
	@JoinColumn(name="instrument_school_id")
	public InstrumentSchool getInstrumentSchool() {
		return instrumentSchool;
	}
	public void setInstrumentSchool(InstrumentSchool instrumentSchool) {
		this.instrumentSchool = instrumentSchool;
	}

}
